/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function Login(){
    var done=0;
    var username=document.form1.username.value;
    username=username.toLowerCase();
    var password=document.form1.password.value;
    password=password.toLowerCase();
    if(password==""||username==""){alert('Não pode haver campos em branco!'); return;}

    if (username=="erick" && password=="metallica") {
        window.location="principal.html";
        done=1;
    }else{
            alert("Login ou senha inválida, tente novamente");
            document.form1.password.value="";
            document.form1.username.value="";


        }
    }


